package com.itmg.analyze.jp.model;

import java.io.Serializable;

/**
 *  url参数 getURLPara获得匹配好的url
 * @author Yunhong Chen
 * */
public class YahooAuctionsSearchParamModel implements Serializable {

	private static final long serialVersionUID = 1L;
	private String  appid;
	private String  query;
	private String  type;
	private String  category;
	private Integer page;
	private Integer aucminprice;	
	private Integer aucmaxprice;	
	private Integer aucmin_bidorbuy_price;	
	private Integer aucmax_bidorbuy_price;	
	private Integer aucmin_buynow_price;	
	private Integer aucmax_buynow_price;	
	private Integer loc_cd;
	private Integer store;
	private Integer escrow;
	private Integer easypayment;
	private Integer new1;
	private Integer largeimg;
	private Integer freeshipping;
	private Integer wrappingicon;
	private Integer buynow;
	private Integer thumbnail;
	private Integer attn;
	private Integer gift_icon;
	private String  sort;
	private String  order;
	public String getURLPara()
	{
		String url = "";
		if(appid != null)
		{
			url = url + "?appid="+appid;
		}
		if(query != null)
		{
			url = url + "&query="+query;
		}
		if(type != null)
		{
			url = url + "&type="+type;
		}
		if(category != null)
		{
			url = url + "&category="+category;
		}
		if(page != null)
		{
			url = url + "&page="+page;
		}
		if(aucminprice != null)
		{
			url = url + "&aucminprice="+aucminprice;
		}
		if(aucmaxprice != null)
		{
			url = url + "&aucmaxprice="+aucmaxprice;
		}
		if(aucmin_bidorbuy_price != null)
		{
			url = url + "&aucmin_bidorbuy_price="+aucmin_bidorbuy_price;
		}
		if(aucmax_bidorbuy_price != null)
		{
			url = url + "&aucmax_bidorbuy_price="+aucmax_bidorbuy_price;
		}
		if(aucmin_buynow_price != null)
		{
			url = url + "&aucmin_buynow_price="+aucmin_buynow_price;
		}
		if(aucmax_buynow_price != null)
		{
			url = url + "&aucmax_buynow_price="+aucmax_buynow_price;
		}
		if(loc_cd != null)
		{
			url = url + "&loc_cd="+loc_cd;
		}
		if(store != null)
		{
			url = url + "&price_to="+store;
		}
		if(escrow != null)
		{
			url = url + "&escrow="+escrow;
		}
		if(easypayment != null)
		{
			url = url + "&easypayment="+easypayment;
		}
		if(sort != null)
		{
			url = url + "&sort="+sort;
		}
		if(new1 != null)
		{
			url = url + "&new="+new1;
		}
		if(largeimg != null)
		{
			url = url + "&largeimg="+largeimg;
		}
		if(freeshipping != null)
		{
			url = url + "&freeshipping="+freeshipping;
		}
		if(wrappingicon != null)
		{
			url = url + "&wrappingicon="+wrappingicon;
		}
		if(buynow != null)
		{
			url = url + "&buynow="+buynow;
		}
		if(thumbnail != null)
		{
			url = url + "&thumbnail="+thumbnail;
		}
		if(attn != null)
		{
			url = url + "&attn="+attn;
		}
		if(gift_icon != null)
		{
			url = url + "&gift_icon="+gift_icon;
		}
		if(sort != null)
		{
			url = url + "&sort="+sort;
		}
		if(order != null)
		{
			url = url + "&order="+order;
		}
		return url;
	}
	
	public String getAppid() {
		return appid;
	}
	public void setAppid(String appid) {
		this.appid = appid;
	}
	public String getQuery() {
		return query;
	}
	public void setQuery(String query) {
		this.query = query;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	public Integer getPage() {
		return page;
	}
	public void setPage(Integer page) {
		this.page = page;
	}
	public Integer getAucminprice() {
		return aucminprice;
	}
	public void setAucminprice(Integer aucminprice) {
		this.aucminprice = aucminprice;
	}
	public Integer getAucmaxprice() {
		return aucmaxprice;
	}
	public void setAucmaxprice(Integer aucmaxprice) {
		this.aucmaxprice = aucmaxprice;
	}
	public Integer getAucmin_bidorbuy_price() {
		return aucmin_bidorbuy_price;
	}
	public void setAucmin_bidorbuy_price(Integer aucmin_bidorbuy_price) {
		this.aucmin_bidorbuy_price = aucmin_bidorbuy_price;
	}
	public Integer getAucmax_bidorbuy_price() {
		return aucmax_bidorbuy_price;
	}
	public void setAucmax_bidorbuy_price(Integer aucmax_bidorbuy_price) {
		this.aucmax_bidorbuy_price = aucmax_bidorbuy_price;
	}
	public Integer getAucmin_buynow_price() {
		return aucmin_buynow_price;
	}
	public void setAucmin_buynow_price(Integer aucmin_buynow_price) {
		this.aucmin_buynow_price = aucmin_buynow_price;
	}
	public Integer getAucmax_buynow_price() {
		return aucmax_buynow_price;
	}
	public void setAucmax_buynow_price(Integer aucmax_buynow_price) {
		this.aucmax_buynow_price = aucmax_buynow_price;
	}
	public Integer getLoc_cd() {
		return loc_cd;
	}
	public void setLoc_cd(Integer loc_cd) {
		this.loc_cd = loc_cd;
	}
	public Integer getStore() {
		return store;
	}
	public void setStore(Integer store) {
		this.store = store;
	}
	public Integer getEscrow() {
		return escrow;
	}
	public void setEscrow(Integer escrow) {
		this.escrow = escrow;
	}
	public Integer getEasypayment() {
		return easypayment;
	}
	public void setEasypayment(Integer easypayment) {
		this.easypayment = easypayment;
	}
	public Integer getNew1() {
		return new1;
	}
	public void setNew1(Integer new1) {
		this.new1 = new1;
	}
	public Integer getLargeimg() {
		return largeimg;
	}
	public void setLargeimg(Integer largeimg) {
		this.largeimg = largeimg;
	}
	public Integer getFreeshipping() {
		return freeshipping;
	}
	public void setFreeshipping(Integer freeshipping) {
		this.freeshipping = freeshipping;
	}
	public Integer getWrappingicon() {
		return wrappingicon;
	}
	public void setWrappingicon(Integer wrappingicon) {
		this.wrappingicon = wrappingicon;
	}
	public Integer getBuynow() {
		return buynow;
	}
	public void setBuynow(Integer buynow) {
		this.buynow = buynow;
	}
	public Integer getThumbnail() {
		return thumbnail;
	}
	public void setThumbnail(Integer thumbnail) {
		this.thumbnail = thumbnail;
	}
	public Integer getAttn() {
		return attn;
	}
	public void setAttn(Integer attn) {
		this.attn = attn;
	}
	public Integer getGift_icon() {
		return gift_icon;
	}
	public void setGift_icon(Integer gift_icon) {
		this.gift_icon = gift_icon;
	}
	public String getSort() {
		return sort;
	}
	public void setSort(String sort) {
		this.sort = sort;
	}
	public String getOrder() {
		return order;
	}
	public void setOrder(String order) {
		this.order = order;
	}
	
	
}
